package com.itheima.localdatetime;

import java.time.DayOfWeek;
import java.time.LocalDateTime;
import java.time.Month;

public class Demo02 {

    public static void main(String[] args) {

        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.getMonthValue());
        Month month = now.getMonth();

        System.out.println(now.getDayOfMonth());
        DayOfWeek dayOfWeek = now.getDayOfWeek();
        System.out.println(dayOfWeek);
        System.out.println(now.getDayOfYear());
        System.out.println(now.getNano());

    }
}
